package service

import (
	"go_server/game_server/event_manager/event_data"
	"go_server/zinx/ziface"
	"go_server/zinx/zlog"
)

type AbsService struct {}

func (as *AbsService) GetRoleId(request ziface.IRequest) int64 {
	conn := request.GetConnection()
	roleId, err := conn.GetProperty("roleId")
	if err != nil {
		zlog.Error("获取玩家roleId出错！！！")
		return 0
	}
	nRoleId := roleId.(int64)
	return nRoleId
}

func (as *AbsService) GetEventHandleFunc(event_data.EventType) (func(event event_data.IEvent), bool) {
	return nil, false
}
func (as *AbsService) GetEventMap() map[event_data.EventType]func(event_data.IEvent) {
	return nil
}
func (as *AbsService) GetModuleName() string {
	return ""
}